package com.michir.projects.jms.mocks;

import javax.jms.MessageConsumer;
import javax.jms.MessageListener;

import org.mockito.Mockito;

/**
 * {@link MessageListener} Mocker: uses {@link Mockito}.
 * 
 * @author michir
 */
public class MessageListenerMocker {

	/**
	 * Use {@link #mock()} factory method.
	 */
	private MessageListenerMocker() {}

	/**
	 * {@link MessageConsumer} mock factory.
	 * @return a new mock instance
	 * @throws Exception
	 */
	public static MessageListener mock() throws Exception {
		MessageListener listener = Mockito.mock(MessageListener.class);
		return listener;
	}
}
